// Copyright (c) 2007 Robin Boerdijk. All rights reserved.
//
// This software is licensed under the terms of the Microsoft Reciprocal License as described 
// in the file LICENSE.txt, which you should have received as part of this distribution. The 
// license terms are also available at http://www.opensource.org/licenses/ms-rl.html.

#ifndef wtk_NumberEditControl_h_included
#define wtk_NumberEditControl_h_included

#include "wtk/EditControl.h"

namespace wtk
{
	class NumberEditControl : public EditControl
	{
	public:

		NumberEditControl(DialogWindow *dialogWindow, int maxDigits);

		virtual SIZE GetMinimumSize();

	protected:

		virtual bool AcceptChar(wchar_t ch);

	private:

		int m_maxDigits;
	};
}

#endif